home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Varios Español
/
Varios Español.iso
/
STATION5
/
LIBRARIA
/
DMLDEMO.INF
< prev
next >
Wrap
INI File
|
1993-09-13
|
7KB
|
257 lines
;; This script installs DM/Librarian
DefineVariables
Logical [InstallBoundVersion] := YesCharacter
Logical [BrowseReadMe] := NoCharacter
Logical [Installed] := NoCharacter
Logical [InstallBoundXVersion] := NoCharacter
Directory [instn1] := C:\DML
Directory [mspath] := C:\USTATION
Logical [config] := YesCharacter
Logical [database] := NoCharacter
Logical [help] := YesCharacter
Logical [tmp]
EndDefineVariables
Do SetupINSTALIT
Do Banner
[point1]
DetermineInstallationDrive QueSize RequireFixed ConfirmRAM
DetermineInstallationDirectory QueSize RequireFixed ConfirmRAM
;;Dialog Multiple WhiteOnBlue synchronizeInputs UseHeader "Product Directory"
;; "Please Enter product directory here "
;; "Directory for DM/Librarian files : "
;; InputVariable [instn1] 20 @xy(36,3) YellowOnCyan UpperCase
;;WriteText "DM/Librarian DIRECTORY :" LightGreenOnBlue @xy(2,3)
;;EndDialog
;;SetAllowEscape On
;;SetBottomLineTo "Press Esc to go back"
;;Dialog Multiple WhiteOnBlue
;; "DM/Librarian Directory: "[instn1]
;; PushButton " OK " @xy(center, 7) blackoncyan shadow
;;WriteText "DM/Librarian DIRECTORY:" @xy(left, 1) blackonwhite
;;EndDialog
;;if escaped
;; SetAllowEscape Off
;; Do SetColors
;; goto [point1]
;;endif
;;SetAllowEscape Off
Do SetColors
:Main
Dialog Multiple WhiteOnCyan synchronizeInputs UseHeader "DM/Librarian Demo Configuration"
" "
"Run DM/Librarian Demo Configuration Program ? "
InputVariable [config] 50 @xy(48,3) YellowOnCyan UpperCase
EndDialog
Dialog Multiple WhiteOnCyan synchronizeInputs UseHeader "MicroStation Directory"
".CPlease input the directory where MicroStation is installed "
"Enter path name where MicroStation is installed "
InputVariable [mspath] 50 @xy(3,4) YellowOnCyan UpperCase
" "
EndDialog
SetAllowEscape On
[point2]
If .NOT. DirectoryExists [mspath]
SetBottomLineTo "Press Esc to Exit"
Dialog Multiple WhiteOnCyan synchronizeInputs UseHeader "MicroStation Directory"
"Directory [mspath] does not exist"
"Please input the directory where MicroStation is installed "
"Enter path name where MicroStation is installed "
InputVariable [mspath] 50 @xy(3,5) YellowOnCyan UpperCase
" "
EndDialog
If escaped
Dialog [tmp] WhiteOnRed UseHeader "Exit DM/Librarian Demo Installation"
".LDM/Librarian Demo Installation is not complete. "
".LExit anyway ?"
EndDialog
If [tmp] = YesCharacter
SetCompletionStatusTo Unfinished
SoLong
else
GoTo [point2]
EndIf
EndIf
GoTo [point2]
EndIf
SetAllowEscape Off
Do SetColors
;;Dialog Multiple WhiteOnCyan synchronizeInputs UseHeader "DM/Librarian Server"
;; ".LThere must be at least one DM/Librarian Server node in the network"
;; ".Land all users must have access to a DM/Librarian Server node."
;; ".CPlease input Yes if this node is the DM/Librarian Server."
;; "Is this node the database server ?"
;; InputVariable [database] 40 @xy(36,6) YellowOnCyan UpperCase
;; ;;WriteText "Database" LightGreenOnBlue @xy(2,3)
;;EndDialog
Dialog Multiple WhiteOnCyan synchronizeInputs UseHeader "DM/Librarian Help"
".LHelp requires additional disk space."
".LPlease input Yes if you want help to be installed."
"Do you want to install help ? "
InputVariable [help] 40 @xy(32,4) YellowOnCyan UpperCase
;;WriteText "Help" LightGreenOnBlue @xy(2,3)
EndDialog
Do Install
ChangeDirectoryTo [InstallationDirectory]
Do Cleanup
SoLong
Procedure Install
QueAllFiles
;; If [database] = NoCharacter
;; UnqueFiles
;; *.mdx
;; *.dbf
;; EndUnQueFiles
;; EndIf
If FileExists [InstallationDirectory]\meta\*.mdx
UnqueFiles
*.mdx
EndUnQueFiles
EndIf
If FileExists [InstallationDirectory]\meta\*.dbf
UnqueFiles
*.dbf
EndUnQueFiles
EndIf
If [help] = NoCharacter
UnqueFiles
dmlhelp.rsc
EndUnQueFiles
EndIf
;;[AdditionalSpaceRequired] := 133117
;;[InstallationDirectory] := [instn1]
;;DetermineInstallationDrive QueSize RequireFixed
;;DetermineInstallationDirectory QueSize RequireFixed
OpenCopyWindow
CopyFiles
*.INF
EndCopyFiles
CloseCopyWindow
GetQuedFiles
ChangeDirectoryTo [InstallationDirectory]
DeleteFiles Quietly
readme.doc
EndDeleteFiles
RenameFile [InstallationDirectory]\demo.doc to readme.doc
ClearScreen
TextBox
.cSetting up your default configuration
.cfor DM/Librarian Demo. One moment, please.
EndTextBox
Delay 1000
RUN [InstallationDirectory]\dmlcfg.exe [InstallationDirectory] [mspath] SwapOut Quietly
[Installed] := YesCharacter
;;ChangeDirectoryTo [InstallationDirectory]
;;ChangeDriveTo [InstallationDrive]
ClearScreen
EndProcedure
Procedure ByeBye
Dialog WhiteOnBrown
Thanks again and best wishes. You'll find new information in files
README.DOC.
EndDialog
If [Installed] = YesCharacter
Dialog [BrowseReadme]
Would you like to browse README.DOC now?
EndDialog
If [BrowseReadme] = YesCharacter
BrowseFile [InstallationDirectory]\README.DOC
EndIf
EndIf
SoLong
EndProcedure
Procedure SetupINSTALIT
;;LetButton <F1> Do HelpProcedure
LetButton <F9> Do Terminate
Do SetColors
SetReplacementInquiry off
EndProcedure
Procedure SetColors
SetBackgroundCharTo B0
SetShadowAttrTo BlackOnBlack
SetScreenAttrTo WhiteOnBlue
SetTopLineAttrTo WhiteOnBrown
SetTopLineTo " INSTALLING DM/LIBRARIAN DEMO"
SetBottomLineAttrTo WhiteOnLightGray
SetBottomLineTo " <CtrlX> - quit "
SetExitMessageTo DM/Librarian Demo Installation is Complete
EndProcedure
Procedure Banner
Dialog WhiteOnCyan
" "
".CDM/Librarian Demo Installation"
".CVersion 1.0"
EndDialog
EndProcedure
;;Procedure HelpProcedure
;; Dialog BlackOnGreen
;; This is a sample help procedure. It could call other
;; nested procedures.
;; EndDialog
;;EndProcedure
Procedure Terminate
Do Cleanup
Solong
EndProcedure
Procedure Cleanup
DeleteFiles Quietly
dmlcfg.exe
install.exe
dmlib.inf
EndDeleteFiles
DeleteFiles from [InstallationDirectory]\config\english\help Quietly
dmlhelp.rsc
EndDeleteFiles
If [help] = NoCharacter
DeleteFiles from [mspath]\help\english Quietly
dmlhelp.rsc
EndDeleteFiles
DeleteFiles from [mspath] Quietly
dmlhelp.rsc
EndDeleteFiles
EndIf
EndProcedure
EndScript